package com.itheima.service;


import com.itheima.mapper.AccountMapper;
import com.itheima.pojo.Account;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("accountService")
public class AccountServiceImpl implements AccountService {


	@Autowired
	private AccountMapper accountMapper;

	@Override
	public List<Account> findAll() {
		return accountMapper.findAll();
	}

	@Override
	public void save(Account account) {
		accountMapper.save(account);
	}
}
